/**
 * 
 */
package com.lazyshopkeeper.front.persistence;

import org.apache.ibatis.annotations.Param;

import com.taobao.api.domain.User;
import com.taobao.api.domain.UserCredit;

/**
 * 用户持久化接口
 * @author xuyuqi
 *
 */
public interface UserMapper {

	public User getUser(@Param("nick")String nick);
	
	public UserCredit getUserCredit(@Param("uid")long userId);
	
	public int saveNewUser(@Param("user")User user);
	
	public int saveUserCredit(@Param("uid")long uid, @Param("userCredit")UserCredit uc);
}
